package com.mystore.common.jsonx;

public class JSONEntity {
    private Object result;
    private String status;

    private JSONEntity(Object result, String status) {
        this.result = result;
        this.status = status;
    }
    public static JSONEntity ok(Object data){
        return new JSONEntity(data,"ok");
    }
    public static JSONEntity error(Object data){
        return new JSONEntity(data,"error");
    }
    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
